﻿#ifndef SETRATE_H
#define SETRATE_H

#include <QWidget>
#include "Global.h"
#include <QTableWidgetItem>
#include <QTableWidget>

namespace Ui {
class SetRate;
}

class SetRate : public QWidget
{
    Q_OBJECT
    
public:
    QLabel* time;
    QLabel* signal;

    explicit SetRate(QWidget *parent = 0);
    ~SetRate();
    
private slots:
    void RateShow(int current);
    void on_buttonBack_clicked();
    void on_buttonPrev_clicked();
    void on_buttonNext_clicked();
    void on_buttonSave_clicked();
    void on_Keyboard_clicked();
    void inputTableWidget();

private:
    db_register* registe;
    xj_price_model *price_model;
    QTableWidgetItem *item[4][48];
    QString intToStr(int numtime);
    void keyBoardConnect();
    int page;
    Ui::SetRate *ui;
};

#endif // SETRATE_H
